package com.base.common.base;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Date;

/**
 * 拥有用户curd操作字段的实体类
 * @author dou
 */
@Data
@ToString
@EqualsAndHashCode(callSuper = true)
public class BaseUserEntity extends BaseEntity{

    @TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NEVER)
    @ApiModelProperty(hidden = true)
    protected Integer createUserId;

    @TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NEVER)
    @ApiModelProperty(hidden = true)
    protected Date createTime;

    @TableField(fill = FieldFill.UPDATE, insertStrategy =  FieldStrategy.NEVER)
    @ApiModelProperty(hidden = true)
    protected Integer updateUserId;


    @TableField(fill = FieldFill.UPDATE, insertStrategy =  FieldStrategy.NEVER)
    @ApiModelProperty(hidden = true)
    protected Date updateTime;

}
